//
//  YTButton.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/12.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTButton.h"

@implementation YTButton

//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
// 
//    [self setBackgroundColor:kHightlightColor];
//}
//
//- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    [self setBackgroundColor:kHightlightColor];
//}
//
//- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    [self setBackgroundColor:UIColor.whiteColor];
//}

- (void)setHighlighted:(BOOL)highlighted
{
    self.backgroundColor = highlighted ? kHightlightColor : UIColor.whiteColor;
}
@end
